<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    if (path.length() > 0) path = path.substring(0, path.length() - 1);
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<link rel="stylesheet" href="<%=path %>/css/bootstrap.css">
<link rel="stylesheet" href="<%=path %>/css/jquery-accordion-menu.css">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="<%=path %>/js/jquery-1.11.3.min.js"></script>
<script src="<%=path %>/dwr/engine.js"></script>
<script src="<%=path %>/dwr/util.js"></script>
<script language="JavaScript" src="<%=path %>/js/public.js" type="text/javascript"></script>
<script type="text/javascript">
    function myInfo() {
        <s:if test="#session.user==null">
        alert("请先登录");
        </s:if>

        <s:else>
        var url = "<%=path %>/view/user/userInfo.jsp";
        window.frames.user.src = url;
        $('#userInfo').modal();
        </s:else>
    }
    function myInfoEdit() {
        <s:if test="#session.user==null">
        alert("请先登录");
        </s:if>

        <s:else>
        var url = "<%=path %>/view/user/userInfoEdit.jsp";
        window.frames.user.src = url;
        $('#userInfo').modal();
        </s:else>
    }
    function myCart() {
        <s:if test="#session.user==null">
        alert("请先登录");
        </s:if>

        <s:else>
        var s = "<%=path %>/order/myCart.action";
        window.location.href = s;
        </s:else>
    }

    function myOrder() {
        <s:if test="#session.user==null">
        alert("请先登录");
        </s:if>

        <s:else>
        var s = "<%=path %>/order/myOrder.action";
        window.location.href = s;
        </s:else>
    }

</script>
<style type="text/css">
    body {
        background-color: #fbfbfb;
    }

    .thumbnail {
        border-bottom: 2px solid #337ab7;
        background-color: #fff;

    }

    .thumbnail img {
        border: 1px solid rgba(139, 150, 181, 0.52);
        border-radius: 5px;
        margin-top: 10px;
    }

    .media-left > a > img {
        border: 1px solid rgba(139, 150, 181, 0.52);
        border-radius: 5px;
    }

    .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
        vertical-align: middle;
    }

    iframe {
        border: 0;
    }

    .dropdown-menu {
        border-top-style: none;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 6px 12px rgba(0, 124, 214, .175);
    }
</style>